package com.example.demo.pojo;


public class SysUser {
    
    private String id;
    private String name;

    public SysUser() {
    }

    public SysUser(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public void setId(String id) {
        this.id = id;
    };

    public void setName(String name) {
        if(name.length() > 10) {
            throw new RuntimeException("name length must less than 10");
        }

        this.name = name;
    };

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

}
